<?php
	header("Content-type: application/x-javascript");
?>

Ext.define('AmpleHarvest.Data.Store.statistics.data.cErrorSummaryPieChart',
{
	extend		: 'Ext.data.Store',
	requires	:
	[
		'AmpleHarvest.util.UrlBuilder'
	],
	model		: 'AmpleHarvest.Data.Model.statistics.data.cErrorSummaryPieChart',
	autoLoad	: true,

	constructor	: function()
	{
		this.proxy =
		{
			type		: 'ajax',
			url			: AmpleHarvest.util.UrlBuilder
					.getErrorSummaryPieChartUrl(),
			timeout		: '300000',
			method		: 'GET',
			startParam	: 'offset',
			reader		:
			{
				type	: 'json',
				root	: 'collection'
			}
		};
		this.callParent(arguments);
	}
}
);